<%--
  Created by IntelliJ IDEA.
  User: zjd
  Date: 2020/8/25
  Time: 16:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>添加场次</title>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/bootstrap-responsive.min.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/colorpicker.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/datepicker.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/uniform.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/select2.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/matrix-style.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/matrix-media.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back-style/css/bootstrap-wysihtml5.css"/>
    <link href="${pageContext.request.contextPath}/back-style/font-awesome/css/font-awesome.css" rel="stylesheet"/>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
    <h1><a href="dashboard.html">MatAdmin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">

</div>

<!--start-top-serch-->
<!--close-top-serch-->

<!--sidebar-menu-->

<div id="sidebar"><a href="#" class="visible-phone"><i class="icon icon-list"></i>Forms</a>
    <ul>
        <li><a href="${pageContext.request.contextPath}/admin/toUsersList"><i class="icon icon-home"></i>
            <span>首页</span></a></li>
        <li><a href="${pageContext.request.contextPath}/admin/toAddMovies"><i
                class="icon icon-signal"></i> <span>添加电影</span></a></li>
        <li><a href="${pageContext.request.contextPath}/admin/toMoviesDetail"><i class="icon icon-inbox"></i>
            <span>电影详情</span></a></li>
        <li><a href="${pageContext.request.contextPath}/admin/toCharts"><i class="icon icon-th"></i> <span>图表</span></a>
        </li>
        <li><a href="${pageContext.request.contextPath}/admin/toAdminList"><i class="icon icon-fullscreen"></i> <span>管理列表</span></a>
        </li>
        <li class="active"><a href="${pageContext.request.contextPath}/admin/toAddShowing"><i
                class="icon icon-fullscreen"></i> <span>添加场次</span></a>
        </li>
        <li><a href="${pageContext.request.contextPath}/admin/toShowingList"><i class="icon icon-fullscreen"></i> <span>全部场次</span></a>
        </li>
        <li><a href="${pageContext.request.contextPath}/admin/toAddCinemas"><i class="icon icon-fullscreen"></i> <span>添加放映厅</span></a>
        </li>
        <li><a href="${pageContext.request.contextPath}/admin/toCinemasList"><i class="icon icon-fullscreen"></i> <span>全部放映厅</span></a>
        </li>
        <li><a href="${pageContext.request.contextPath}/admin/toAddType"><i class="icon icon-fullscreen"></i> <span>添加展厅类型</span></a>
        </li>
        <li><a href="${pageContext.request.contextPath}/admin/toAddCate"><i class="icon icon-fullscreen"></i> <span>电影类型添加</span></a>
        </li>
    </ul>
</div>

<!--close-left-menu-stats-sidebar-->

<div id="content">
    <div class="container-fluid">
        <hr>
        <div class="row-fluid">
            <div class="span6">
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"> <i class="icon-align-justify"></i> </span>
                        <h2>场次添加</h2>
                    </div>
                    <div class="widget-content nopadding">
                        <form id="" action="${pageContext.request.contextPath}/showings/addShowing" method="post"
                              class="form-horizontal">
                            <div class="control-group">
                                <label class="control-label">上映时间 :</label>
                                <div class="controls">
                                    <input name="showing_data" type="datetime-local" class="span11" placeholder="上映时间"/>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">放映厅 :</label>
                                <div class="controls">
                                    <select id="cina" name="cina">
                                        <option value="default">default</option>
                                    </select>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">电影名 :</label>
                                <div class="controls">
                                    <select id="mov" name="mov">
                                        <option value="defualt">default</option>
                                    </select>
                                </div>
                            </div>
                            <div id="submitAdd" class="form-actions text-center">
                                <button type="submit" class="btn btn-success">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--Footer-part-->
<div class="row-fluid">
    <div id="footer" class="span12">Copyright &copy; 2018.Company name All rights reserved.<a target="_blank"
                                                                                              href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
    </div>
</div>
<!--end-Footer-part-->
<script src="${pageContext.request.contextPath}/back-style/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/jquery.ui.custom.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/bootstrap-colorpicker.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/bootstrap-datepicker.js"></script>
<%--<script src="${pageContext.request.contextPath}/back-style/js/jquery.toggle.buttons.html"></script>--%>
<script src="${pageContext.request.contextPath}/back-style/js/masked.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/jquery.uniform.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/select2.min.js"></script>
<%--<script src="${pageContext.request.contextPath}/back-style/js/matrix.js"></script>--%>
<%--<script src="${pageContext.request.contextPath}/back-style/js/matrix.form_common.js"></script>--%>
<script src="${pageContext.request.contextPath}/back-style/js/wysihtml5-0.3.0.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/jquery.peity.min.js"></script>
<script src="${pageContext.request.contextPath}/back-style/js/bootstrap-wysihtml5.js"></script>
</body>
<script>
    $(function () {
        $.post("${pageContext.request.contextPath}/movies/getAllMov", {
        }, function (data) {
            console.log(data)
            var content = ""
            $.each(data, function (index, obj) {
                content += "<option value='" + obj.movieNo + "'>" + obj.movieName + "</option>"
            })
            $("#mov").empty()
            $("#mov").append(content);
        }, "json")
        $.post("${pageContext.request.contextPath}/showings/queryAllCin", {},
            function (data) {
                var content1 = ""
                $.each(data, function (index, obj) {
                    content1 += "<option value='" + obj.cinema_no + "'>" + obj.cinema_name + "</option>"
                })
                $("#cina").empty()
                $("#cina").append(content1)
            }, "json")
    })
</script>
</html>

